def nodeName = params.NODE_NAME
println "nodeName: ${nodeName}"

node(nodeName) {

    stage('build') {
        checkout([$class: 'SubversionSCM', additionalCredentials: [], excludedCommitMessages: '', excludedRegions: '', excludedRevprop: '', excludedUsers: '', filterChangelog: false, ignoreDirPropChanges: false, includedRegions: '', locations: [[cancelProcessOnExternalsFail: true, credentialsId: 'alpha_svn_credential', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: 'http://114.55.64.147/svn/rbm/trunk']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']])
        sh "mvn clean package -Dmaven.test.skip=true -Ddocker.image.tag=1.0.1 dockerfile:build dockerfile:push"
    }
}